<extend name="template/base_index" />


<block name="area_header">
	<style type="text/css">
		.selected{

			background-color: #326196;
		}
	</style>
</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			<!-- 过滤\查询按钮 -->
			<div class="text-center"><h4> 类目【{$cate_vo.name}】的规格管理 </h4></div>
			<!-- 操作按钮 -->
			<div class="btn-controls">
				<!--<a href="{:U('Admin/Category/index',array('cate_id'=>$cate_id))}" class="btn btn-default btn-sm "><i class="fa fa-reply"></i>返回</a>-->
				<a href="{:U('Admin/Category/level3')}" class="btn btn-default btn-sm "><i class="fa fa-reply"></i>返回</a>

				<a target-form="selectitem" class="btn btn-primary btn-sm ajax-post confirm" href="{:U('Admin/CategorySku/bulkAdd',['cate_id'=>$cate_id])}"><i class="fa fa-plus"></i>关联到类目【{$cate_vo.name}】</a>

			</div>
			<div style="color: #FF4400;">由于系统限制一个类目只能关联10个规格</div>
			<table class="table table-striped table table-hover  table-condensed">
				<thead>
				<tr>
					<th>
						<input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
					</th>
					<th>
						规格
					</th>
				</tr>
				</thead>
				<tbody>
				<empty name="list">
					<tr>
						<td colspan="3" class="text-center">{:L('NO_DATA')}</td>
					</tr>
					<else/>
					<volist name="list" id="vo">
						<tr>
							<td>
								<input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem" /></td>
							<td>
								{$vo.name}
							</td>
						</tr>

					</volist>
				</empty>
				</tbody>
			</table>
			<div>{$show}</div>
		</div>

	</div>
	<!-- END admin-main-content -->
	</div>
	<!-- END admin-main-->
</block>

<block name="area_footer">

</block>